﻿using System;
using Volo.Abp.Caching;
using YaAppoint.RoslynCompiler;

namespace YaAppoint.Rules
{
    [CacheName("RuleFilter")]
    public class RuleFilter
    {
        // 过滤器优先级系数
        public int Order { get; set; }

        // 动态编译后的IRule实例
        public IRule Instance { get; set; }

        // 规则Id
        public Guid RuleId { get; set; }

        // 逻辑类型
        public LogicType LogicType { get; set; }

        // code的MD5值
        public string MD5 { get; set; }

        public DynamicAssemblyLoadContext assemblyLoadContext { get; set; }
    }
}
